package com.example.seh.person.sell.second;

import com.example.seh.UserDTO;
import com.example.seh.home.secondhand.GoodsDTO;

import java.util.Date;

public class OrderDTO {
    //订单编号
    private Integer orderId;
    //下单用户id
    private Integer userId;
    //卖家id
    private Integer sellerId;
    //商品id
    private Integer goodsId;
    //收货地址id
    private Integer addressId;
    //订单总价
    private Double orderPrice;
    //订单状态
    private Integer orderStatus;
    //支付方式
    private String paymentMethod;
    //下单时间
   private String createTime;
    //支付时间
    private String  paymentTime;
    //发货时间
    private String  shippingTime;
    //成交时间
    private String  confirmTime;
    //逻辑删除
    private Integer isDel;
    //收货地址
    private String receiveAddress;
    //商品信息
    private GoodsDTO goodsDTO;
    private UserDTO userDTO;

    public UserDTO getUserDTO() {
        return userDTO;
    }

    public void setUserDTO(UserDTO userDTO) {
        this.userDTO = userDTO;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getSellerId() {
        return sellerId;
    }

    public void setSellerId(Integer sellerId) {
        this.sellerId = sellerId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public Double getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(Double orderPrice) {
        this.orderPrice = orderPrice;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getPaymentMethod() {
        return paymentMethod;
    }

    public void setPaymentMethod(String paymentMethod) {
        this.paymentMethod = paymentMethod;
    }

    public String  getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String  createTime) {
        this.createTime = createTime;
    }

    public String getPaymentTime() {
        return paymentTime;
    }

    public void setPaymentTime(String  paymentTime) {
        this.paymentTime = paymentTime;
    }

    public String  getShippingTime() {
        return shippingTime;
    }

    public void setShippingTime(String  shippingTime) {
        this.shippingTime = shippingTime;
    }

    public String getConfirmTime() {
        return confirmTime;
    }

    public void setConfirmTime(String  confirmTime) {
        this.confirmTime = confirmTime;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public String getReceiveAddress() {
        return receiveAddress;
    }

    public void setReceiveAddress(String receiveAddress) {
        this.receiveAddress = receiveAddress;
    }

    public GoodsDTO getGoodsDTO() {
        return goodsDTO;
    }

    public void setGoodsDTO(GoodsDTO goodsDTO) {
        this.goodsDTO = goodsDTO;
    }

    @Override
    public String toString() {
        return "OrderDTO{" +
                "orderId=" + orderId +
                ", userId=" + userId +
                ", sellerId=" + sellerId +
                ", goodsId=" + goodsId +
                ", addressId=" + addressId +
                ", orderPrice=" + orderPrice +
                ", orderStatus=" + orderStatus +
                ", paymentMethod='" + paymentMethod + '\'' +
                ", createTime='" + createTime + '\'' +
                ", paymentTime='" + paymentTime + '\'' +
                ", shippingTime='" + shippingTime + '\'' +
                ", confirmTime='" + confirmTime + '\'' +
                ", isDel=" + isDel +
                ", receiveAddress='" + receiveAddress + '\'' +
                ", goodsDTO=" + goodsDTO +
                ", userDTO=" + userDTO +
                '}';
    }
}
